<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 10/30/2019
      const str = "2019-10-30, 2020-01-01";

      const reg = /(?<y>\d{4})-(?<m>\d{2})-(?<d>\d{2})/g;

      console.log(str.replace(reg, "$<m>/$<d>/$<y>"));
    </script>
  </body>
</html>
